﻿namespace DimensionsHelper.Client.WinUi.Contracts.Services;

public interface ILocalSettingsService
{
    Task<string?> ReadSettingAsync(string key);

    Task<T?> ReadSettingAsync<T>(string key, JsonTypeInfo<T> jsonTypeInfo);

    Task SaveSettingAsync<T>(string key, T value);

    Task SaveSettingAsync<T>(string key, T value, JsonTypeInfo<T> jsonTypeInfo);
}